<%--
  Created by IntelliJ IDEA.
  User: pkuschool
  Date: 2021/4/15
  Time: 5:13 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>页面重定向</title>
</head>
<body>

<h1>页面重定向</h1>

<%
    // 重定向地址
    String site = "https://www.baidu.com";
    response.setStatus(response.SC_MOVED_TEMPORARILY);
    response.setHeader("Location", site);
%>
</body>
</html>
